<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开设教学班</title>
		<script type="text/javascript" src="__JS__/menu.js"></script>
		<script type="text/javascript" src="__JS__/leftmenubar.js"></script>
		<link rel="stylesheet" type="text/css" href="__CSS__/header.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
		<script type="text/JavaScript">
        $(function(){
            $('#form1').ajaxForm({
                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
                success:       complete,  // post-submit callback
                error:function(){alert("error");},
                dataType: 'json'
            });
            
            function complete(data){
                if (data.status==1)
                {
                	window.location='__URL__/classdetail';
                }else{
                    $('#result').html(data.info).show();
                }
            }
        });
        </script>
</head>
<body>
	<!-- layout::Auth:header::0 -->
	<div  class="nowposition">
		当前位置：
		<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
		<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
		<a href='__URL__/classdetail' class="nowpositionhref">教学班管理</a>>
		<a href="" class="nowpositionhref" >开设教学班</a>
	</div>
		<!-- layout::Auth:leftmenu::0 -->
		<div class="classadd">
			<div id='result'></div>
			<form  id='form1' method='post' action='__URL__/class_add'>
			教学班序号<input type='text' name='id'><br>
			课程名称<select name="courseid">
										 <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value =	<?php echo ($vo["courseid"]); ?>><?php echo ($vo["cname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
										</select>
			<input type='hidden' name='no' value=<?php echo ($no); ?>>
			<input type='submit' value='提交'>
			</form>
		</div>
</body>
</html>